package com.neusoft.yuejian12.yuejian_12.service;

import com.neusoft.yuejian12.yuejian_12.javabean.AttentionBean;
import com.neusoft.yuejian12.yuejian_12.javabean.IsAttentionBean;
import com.neusoft.yuejian12.yuejian_12.javabean.ProBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by ZTY on 2017/10/10.
 */

public interface ProService {
    //获取所有大师列表
    @GET("Professor/getAllProfessorList")
    Call<List<ProBean>> getProList();

   //获取大师详情
    @GET("Professor/getProfessorDetail")
    Call<ProBean> getProDetail(@Query("pm_id") int pm_id,
                               @Query("pc_id") int pc_id,
                               @Query("professor_type_id") int professor_type_id);
    //获取大师课堂列表
    @GET("Professor/getAllProfessorCourseList")
    Call<List<ProBean>> getAllProCourseList(@Query("pm_id") int pm_id);
//    @Query("pm_id") int pm_id,@Query("pc_id") int pc_id

    //获取大师详情
    @GET("Professor/getProfessorCourseDetail")
    Call<ProBean> getPcdetail(@Query("pm_id") int pm_id,
                               @Query("pc_id") int pc_id);

    //获取咨询列表
    @GET("Professor/getAllConsultList")
    Call<List<ProBean>> getAllConsultList(@Query("pm_id") int pm_id);

    //判断是否收藏
    @GET("Attention/getIsCollected")
    Call<IsAttentionBean> getIsCollected(@Query("u_id") int u_id,
                                         @Query("select_id") int select_id,
                                         @Query("flag") String flag
    );
    //关注大师
    @GET("Attention/userCollectMaster")
    Call<AttentionBean> userCollectPro(@Query("u_id") int u_id,
                                            @Query("pm_id") int pm_id
    );
 //发表反馈
 @GET("Professor/addconsult")
 Call<ProBean> addConsult(@Query("pm_id") int pm_id,
                          @Query("u_id") int u_id,
                          @Query("consultinfo") String consultinfo
 );


}
